<template>
	<view class="content">
		<view v-html="content">
			
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				content:""
			}
		},
		onLoad(data) {
			if(data.id){
				this.bookDetail(data.id)
			}
		},
		onShow() {
			
		},
		methods:{
			bookDetail(type){
				this.$http.get('/api/user/bookContent/'+type).then((data)=>{
					if(data.data.code==200){
						this.content=data.data.result;
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import '@/static/css/bookDetail.scss'
</style>
